#ifndef LEVEL_H
#define LEVEL_H

#pragma once
#include "physicsfloor.h"
#include "PhysicsBall.h"
#include "XInputManager.h"
#include "Timer.h"
#include "GameObjectManager.h"
#include "ColourHelper.h"
#include "HavokWorld.h"


class Level : public PhysicsFloor
{
public:
	Level(float width, float height, float depth) 
		: PhysicsFloor(width, height, depth)
	{
			Init();
	}

	void CreateObject();
	void CreateWall(float posX, float PosY, float wallWidth, float wallHeight);

	// init maze
	void CreateLevel();

	void Init();
	void Update();

	float WallHeight;
	float TileNumX;
	float TileNumY;
	int *TileMap; // one dimentional array of int's defining the maze

protected:

	hkArray<hkpShape*> shapeArray;
	void CreateFloor();

	void CreateGeometry();
	void CreatePhysicsObject();


};

#endif

